from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import HostViewSet, CityViewSet, DataCenterViewSet, HostStatisticsViewSet

router = DefaultRouter()
router.register(r'hosts', HostViewSet)
router.register(r'cities', CityViewSet)
router.register(r'datacenters', DataCenterViewSet)
router.register(r'hoststatistics', HostStatisticsViewSet)

urlpatterns = [
    path(r'', include(router.urls)),
]
